# Extra stuff for GELI

.PATH: ${SASRC}/geli

# Our password input method
SRCS+=		pwgets.c

# AES implementation from sys/crypto
.PATH: ${SYSDIR}/crypto/rijndael
.for i in rijndael-alg-fst.c rijndael-api-fst.c rijndael-api.c
# Remove asserts XXX BAD
CFLAGS.${i}+=	-DNDEBUG
SRCS+=		${i}
.endfor

# local GELI Implementation
.PATH: ${SYSDIR}/geom/eli
.for i in gelidev.c geli_metadata.c
CFLAGS.${i}+= -I${LDRSRC}
SRCS+=		${i}
.endfor
SRCS+=		geliboot.c \
		geliboot_crypto.c \
		g_eli_key.c \
		g_eli_key_cache.c \

# aes
.PATH:		${SYSDIR}/opencrypto
SRCS+=		xform_aes_xts.c
